#include "dri_led.h"
#include "dri_beep.h"
#include "dri_systick.h"
#include "dri_key.h"
#include "dri_exti.h"
#include "dri_usart.h"
#include "dri_time.h"
#include "dri_sht20.h"
#include "dri_spi.h"
#include "dri_seg.h"



//static uint8_t key_status=0;

//uint16_t led_pwm=0;
//uint8_t dir=0;

int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	dri_systick_init(168);
/*	dri_led_init();
	dri_beep_init();
	dri_led_open();
	dri_key_init();
	dri_exti9_init();*/
	dri_usart6_init();
	dri_sht20_init();
	//dri_time13_init();
	dri_sht20_reset();
	dri_spi2_init();
	dri_74hc595_init();
	while(1)
	{
//		dri_sht20_getdata();
//		dri_systick_ms(1000);
		dri_seg_dispaly(1,4);
		


	}
}



